package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-07-21 15:31
 */
public class StudentTest02 {
    public static void main(String[] args) {
        Student s1=new Student();
        s1.name="ls";
        s1.age=17;
        System.out.println(s1.showInfo());
        //整型数组：存储5个整数
//        int[] a=new int[5];
//        System.out.println(a[0]);
        //对象数组：学生数组：存储3个学生
        Student[] students=new Student[3];
        System.out.println(students[0]);
        students[0]=new Student();
        System.out.println(students[0].name);
        students[0].name="zs";
        System.out.println(students[0].name.equals("zxs"));

        students[1]=s1;
        System.out.println(s1.name);
        System.out.println(students[1].name);

        System.out.println(students[2]);
        System.out.println(students[2].name);
    }
}
